/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MainClasses.Event;

/**
 *
 * @author andrewcutler
 */
public abstract class CheckableEvent extends Event{
    
    private boolean checked;
    
    public CheckableEvent(int type)                           { super(type);             }    
    public CheckableEvent(int type, String name)              { super(type, name);       }
    public CheckableEvent(int type, String name, String desc) { super(type, name, desc); }
    
    public void check()             { checked = !checked; }
    
    public void setChecked()        { checked = true;     }    
    public void setUnChecked()      { checked = false;    }    
    public void set(boolean check)  { checked = check;    }  
    
    public boolean getChecked()     { return checked;     }    
    public boolean isChecked()      { return checked;     }    
    public boolean isNotChecked()   { return !checked;    }
    
    
    
    

}
